<?php
/**
 * The template for displaying Archive pages.
 *
 * Used to display archive-type pages if nothing more specific matches a query.
 * For example, puts together date-based pages if no date.php file exists.
 *
 * If you'd like to further customize these archive views, you may create a
 * new template file for each specific one. For example, Bootstrapper
 * already has tag.php for Tag archives, category.php for Category archives,
 * and author.php for Author archives.
 *
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package WordPress
 * @subpackage Bootstrapper
 * @since Bootstrapper 1.0
 */

get_header(); ?>

    <div class="container">
        <div class="row">

			<?php get_sidebar('top'); ?>
            
            <section id="site-content" class="span9"><!-- Begin page content -->

				<?php if ( have_posts() ) : ?>

                    <header class="page-header">
                        <h1 class="archive-title"><?php
                            if ( is_day() ) :
                                printf( __( 'Daily Archives: %s', 'bootstrapper' ), get_the_date() );
                            elseif ( is_month() ) :
                                printf( __( 'Monthly Archives: %s', 'bootstrapper' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'bootstrapper' ) ) );
                            elseif ( is_year() ) :
                                printf( __( 'Yearly Archives: %s', 'bootstrapper' ), get_the_date( _x( 'Y', 'yearly archives date format', 'bootstrapper' ) ) );
                            else :
                                _e( 'Archives', 'bootstrapper' );
                            endif;
                        ?></h1>
                    </header><!-- .page-header -->

					<?php /* The loop */ ?>
                    <?php while ( have_posts() ) : the_post(); ?>
                        <?php get_template_part( 'content', get_post_format() ); ?>
                    <?php endwhile; ?>

					<?php bootstrapper_paging_nav(); ?>

				<?php else : ?>

                    <?php get_template_part( 'content', 'none' ); ?>

                <?php endif; ?>

			</section><!-- /#site-content -->

			<?php get_sidebar('bottom'); ?>
            
		</div><!-- /.row -->
	</div><!-- /.container -->

<?php get_footer(); ?>